import { fetchGet, fetchPost } from "../utils/http.js";

/**
 * 获取something
 */
export const fnGetDataList = (param) => {
  return fetchPost("Goods/question", param);
};

export const fnGetRecord = (param) => {
  return fetchPost("Goods/answerLog", param);
};

export const fnGetAnswerDetail = (param) => {
  return fetchPost("Goods/questionDetail", param)
}

export const fnGetAnswerLog = (param) => {
  return fetchPost("Goods/ansLog", param)
}

export const fnCheckSk = () => {
  return fetchPost("Index/iosCheck", {})
}

export const fnApplyAnswer = (param) => {
  return fetchPost("Goods/askApply", param)
}

export const fnCheckShopName = (param) => {
  return fetchPost("Goods/storename", param)
}

export const fnSetAnswer = (param) => {
  return fetchPost("Goods/answer", param)
}

export const fnChangeKeyword = (param) => {
  return fetchPost("Goods/keyword", param)
}

export default {
    fnGetDataList,
    fnGetRecord,
    fnGetAnswerDetail,
    fnGetAnswerLog,
    fnCheckSk,
    fnApplyAnswer,
    fnCheckShopName,
    fnSetAnswer,
    fnChangeKeyword
}
